using UnityEngine;
using System.Collections;

public class MovimientoRaquetaTeclado : MonoBehaviour {

	public float speed = 60.0f;
   	private Vector3 moveDirection = Vector3.zero;
    private Vector3 posicion;
   	
	void Update() {
       CharacterController controller = GetComponent<CharacterController>();
    
       moveDirection = new Vector3(0, Input.GetAxis("Vertical"), Input.GetAxis("Horizontal"));
       moveDirection = transform.TransformDirection(moveDirection);
       moveDirection *= speed;
       
       controller.Move(moveDirection * Time.deltaTime);

   }
}

